package com.future.direction.ui.activity;

import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.future.direction.R;
import com.future.direction.common.util.UIUtil;
import com.future.direction.di.component.AppComponent;
import com.future.direction.ui.widget.MyTitleBar;

import butterknife.BindView;

/**
 * Created by zhp on 2019-11-08
 */
public class AboutActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.titleBar)
    MyTitleBar titleBar;
    @BindView(R.id.rl_about)
    RelativeLayout rlAbout;
    @BindView(R.id.tv_about_version)
    TextView tvAboutVersion;

    @Override
    public int setLayout() {
        return R.layout.activity_about;
    }

    @Override
    public void getExtras() {

    }

    @Override
    public boolean init() {
        return false;
    }

    @Override
    public void setListener() {
        backListener(titleBar);
        rlAbout.setOnClickListener(this);
        tvAboutVersion.setText("当前版本" + UIUtil.getVersionName());
    }

    @Override
    public void setupAcitivtyComponent(AppComponent appComponent) {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_about:
                //TODO
//                startActivity(new Intent(UIUtil.getContext(), BindPhoneTwoActivity.class));
                break;
        }
    }

}
